<?php

namespace App\SendRequest\WxRequests;

use App\SendRequest\BaseRequest;

class WxRequest extends BaseRequest
{
    public function __construct()
    {
        $this->configureClient();
    }

    protected function configureClient(array $config = [])
    {
        $defaults = [
            'base_uri' => env("WXMINI_BASE_URI"),
            'headers' => [
                'Accept' => 'application/json',
            ],
            'timeout' => 5.0,
        ];

        $this->clientConfig = $config + $defaults;
    }
}
